package com.bandit.service;

import com.bandit.dao.UserDao;
import com.bandit.entity.User;
import com.bandit.factory.SingletonFactory;

import java.util.List;

/**
 * @author Bandit
 * @create 2022/2/22 23:42
 */
public class UserServiceImpl implements UserService {

    private final UserDao userDao = UserDao.getUserDao();

    @Override
    public User getUserById(int id) {
        return userDao.getUserById(id);
    }

    @Override
    public List<User> getUserList() {
        return userDao.getUserList();
    }
}
